package org.lboot.flow.module.define.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author kindear
 * 流程格式校验器
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = FlowJsonValidator.class)
public @interface FlowJson {
    String message() default "流程定义格式校验错误";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
